home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / a-decima.ads < prev    next >
Text File  |  1996-01-30  |  2KB  |  45 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT RUNTIME COMPONENTS                          --
  4. --                                                                          --
  5. --                          A D A . D E C I M A L                           --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.6 $                              --
  10. --                                                                          --
  11. -- This specification is adapted from the Ada Reference Manual for use with --
  12. -- GNAT.  In accordance with the copyright of that document, you can freely --
  13. -- copy and modify this specification,  provided that if you redistribute a --
  14. -- modified version,  any changes that you have made are clearly indicated. --
  15. --                                                                          --
  16. ------------------------------------------------------------------------------
  17.  
  18. package Ada.Decimal is
  19. pragma Pure (Decimal);
  20.  
  21.    Max_Scale : constant := +18;
  22.    Min_Scale : constant := -18;
  23.  
  24.    Min_Delta : constant := 10.0E-18;
  25.    Max_Delta : constant := 10.0E+18;
  26.  
  27.    Max_Decimal_Digits : constant := 18;
  28.  
  29.    generic
  30.       type Dividend_Type  is delta <> digits <>;
  31.       type Divisor_Type   is delta <> digits <>;
  32.       type Quotient_Type  is delta <> digits <>;
  33.       type Remainder_Type is delta <> digits <>;
  34.  
  35.    procedure Divide
  36.      (Dividend  : in Dividend_Type;
  37.       Divisor   : in Divisor_Type;
  38.       Quotient  : out Quotient_Type;
  39.       Remainder : out Remainder_Type);
  40.  
  41. private
  42.    pragma Inline (Divide);
  43.  
  44. end Ada.Decimal;
  45.